﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Center_User_Meterial_Interface.aspx.cs" Inherits="Hisun.View.DataExchange.Center_User_Meterial_Interface" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
        .style1
        {
        }
        .style2
        {
            width: 350px;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server">
       <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">作业中心数据同步</div></div>
    <div class ="CommonPage_Body">
         
        <table >
            <tr>
                <td colspan="3">
                                        <asp:Label ID="Label11" runat="server" Text="按领用人筛选：" SkinID="Label"></asp:Label>
                                        <asp:TextBox ID="TextBox_QueryValue" runat="server" SkinID="TextBox"></asp:TextBox>
                                        <asp:Button SkinID = "Button" ID="Button2" runat="server" onclick="MyClick" Text="查询" />
                </td>
            </tr>
            <tr>
                <td colspan="3">
                                        <asp:LinkButton ID="LinkButton_First" runat="server" CommandArgument="First" OnClick="MyClick">&lt;&lt;</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="LinkButton_Prev" runat="server" CommandArgument="Prev" OnClick="MyClick"> &lt;</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="LinkButton_Next" runat="server" CommandArgument="Next" OnClick="MyClick">&gt;</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="LinkButton_Last" runat="server" CommandArgument="Last" OnClick="MyClick"> &gt;&gt;</asp:LinkButton>
                    <asp:Label ID="Label_Total" runat="server" Text="共：" SkinID="Label"></asp:Label>
                    <asp:Label ID="Label_CurrenPageAndTo" runat="server" Text="页，当前第 页，转到" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_PageIndex" runat="server" Width="26px"></asp:TextBox>
                    <asp:Label ID="Label4" runat="server" Text="页"></asp:Label>
                    <asp:RangeValidator ID="RangeValidator_PageIndex" runat="server" ControlToValidate="TextBox_PageIndex"
                        ErrorMessage="*" MaximumValue="10000" MinimumValue="1" Type="Integer"></asp:RangeValidator>
                    <asp:Button SkinID = "Button" ID="Button_PageGo" runat="server" CommandArgument="GotoPage" OnClick="MyClick"
                        Text="GO" /></td>
            </tr>
            <tr>
                <td colspan="3">
  <asp:GridView ID="GridView_CostCenter" runat="server"  SkinID = "GridView"  
                        AutoGenerateColumns="False">
                            <Columns>
                                <asp:BoundField DataField="领用人" HeaderText="领用人" />
                                <asp:BoundField DataField="作业中心ID" HeaderText="作业中心ID" />
                                <asp:BoundField DataField="作业中心名称" HeaderText="作业中心名称" />
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:Button SkinID = "Button" ID="Button_Select" runat="server" CommandArgument='<%# Eval("ID") %>' 
                                        Text="编辑" ToolTip="选择当前作业中心对应的领料人" oncommand="Button_Select_Command" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" />
                            </Columns>
                        </asp:GridView>

                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Button SkinID = "Button" ID="Button_Add" runat="server" onclick="Button_Add_Click" 
                        Text="增加" />

                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Panel ID="Panel_Main" runat="server" Visible="False" Width="412px">
                      
                        <table style="width:99%; height: 76px;">
                            <tr>
                                <td class="style2">
                                    <asp:Label ID="Label8" runat="server" Text="领用人(物流系统)：" SkinID="Label"></asp:Label>
                                    <asp:TextBox ID="TextBox_UserName" runat="server" Width="173px" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2">
                                    <asp:Label ID="Label9" runat="server" Text="作业中心：" SkinID="Label"></asp:Label>
                                    <asp:DropDownList ID="DropDownList_Center" runat="server" Height="21px" 
                                        Width="239px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2">
                                    <asp:Button SkinID = "Button" ID="Button_Save" runat="server" oncommand="Button_Save_Command" 
                                        Text="保存" />
                                    <asp:Button SkinID = "Button" ID="Button_Cancel" runat="server" oncommand="Button_Cancel_Command" 
                                        Text="取消" />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>

                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:HiddenField ID="CurrentPage" runat="server" Value="0" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1" colspan="3" style="background-color: #C0C0C0">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label1" runat="server" Text="导入材料计划成本表" SkinID="Label"></asp:Label>
                </td>
                <td>
                    <asp:Button SkinID = "Button" ID="Button_ImportUser" runat="server" 
                        oncommand="Button_ImportUser_Command" Text="确定" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label5" runat="server" Text="导入材料编码表" SkinID="Label"></asp:Label>
                </td>
                <td>
                    <asp:Button SkinID = "Button" ID="Button_MeterialDM" runat="server" 
                        onclick="Button_MeterialDM_Click" Text="确定" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label7" runat="server" Text="导入成本账户编码表" SkinID="Label"></asp:Label>
                </td>
                <td>
                    <asp:Button SkinID = "Button" ID="Button_ProductAccount" runat="server" 
                        onclick="Button_ProductAccount_Click" Text="确定" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1" colspan="3" style="background-color: #C0C0C0">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Lable2" runat="server" 
                        Text="导入物流系统材料领用数据，执行后请到“原材料导入数据检查”模块，核对“领用人”信息(一次导入)。" SkinID="Label"></asp:Label>
                </td>
                <td>
                    <asp:Button SkinID = "Button" ID="Button_ImportMeterial" runat="server" 
                        oncommand="Button_ImportMeterial_Command" Text="确定" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label6" runat="server" 
                        Text="导入财务系统录入材料数据(包括产品领料、手工调账及增补原材料项)，执行后请到“产品领料调整”模块录入作业中心(可多次导入)。" 
                        SkinID="Label"></asp:Label>
                    </td>
                <td>
                    <asp:Button SkinID = "Button" ID="Button1" runat="server" onclick="Button1_Click" Text="确定" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1" colspan="3" style="background-color: #C0C0C0">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label10" runat="server" 
                        Text="完成“原材料导入数据检查”、“产品领料调整”后，执行本功能，刷新本月作业中心各中间体的材料投入数(可多次执行)。" 
                        SkinID="Label"></asp:Label>
                    </td>
                <td>
                    <asp:Button SkinID = "Button" ID="Button_ImportMeterila2" runat="server" 
                        onclick="Button_ImportMeterila2_Click" Text="确定" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div></div>
    </form>
</body>
</html>
<%=alter %>